import request from '@/utils/request'

// 查询支款记账列表
export function listZhikuan(query) {
  return request({
    url: '/jiesuan/zhikuan/list',
    method: 'get',
    params: query
  })
}

// 查询支款记账详细
export function getZhikuan(id) {
  return request({
    url: '/jiesuan/zhikuan/' + id,
    method: 'get'
  })
}
export function getSurplusZhiKuan(ywId) {
  return request({
    url: '/jiesuan/zhikuan/getSurplusZhiKuan/' + ywId,
    method: 'get'
  })
}
// 新增支款记账
export function addZhikuan(data) {
  return request({
    url: '/jiesuan/zhikuan',
    method: 'post',
    data: data
  })
}

// 修改支款记账
export function updateZhikuan(data) {
  return request({
    url: '/jiesuan/zhikuan',
    method: 'put',
    data: data
  })
}

// 删除支款记账
export function delZhikuan(id) {
  return request({
    url: '/jiesuan/zhikuan/' + id,
    method: 'delete'
  })
}
